package org.agile2soft.nexoma.tapestry.encoder;

import org.agile2soft.nexoma.controller.ExpedientPhaseController;
import org.agile2soft.nexoma.entity.ExpedientPhase;
import org.hibernate.SessionFactory;

import br.com.arsmachina.module.service.PrimaryKeyTypeService;
import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class ExpedientPhaseEncoder extends HibernateIntegerEncoder<ExpedientPhase> {

    public ExpedientPhaseEncoder(SessionFactory sessionFactory,
            ExpedientPhaseController controller) {
        super(sessionFactory, controller);
    }

//    public ExpedientPhaseEncoder(SessionFactory sessionFactory,
//            ExpedientPhaseController controller,
//            PrimaryKeyTypeService primaryKeyTypeService) {
//        super(sessionFactory, controller,primaryKeyTypeService);
//    }

    public String toLabel(ExpedientPhase expedientPhase) {
        return expedientPhase.getName();
    }

}
